package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 升级配置业务对象 t_app_upgrade
 *
 * @author Joker
 * @date 2024-07-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppUpgradeBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 版本号
     */
    @NotBlank(message = "版本号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String versionNo;

    /**
     * 下载链接
     */
    @NotBlank(message = "下载链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String downloadUrl;

    /**
     * 升级介绍
     */
    @NotBlank(message = "升级介绍不能为空", groups = { AddGroup.class, EditGroup.class })
    private String upgradeIntroduction;

    /**
     * 是否强制更新（0-是、1-否）
     */
    @NotBlank(message = "是否强制更新（0-是、1-否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String forceUpdate;

    /**
     * 备注
     */
    private String remark;


}
